package com.adingxiong.cft.errors;

import com.adingxiong.cft.result.RetCode;
import org.apache.poi.ss.formula.functions.T;

/**
 * @ClassName Assert
 * @Description    断言处理 用于抛出接口调用异常
 * @Author xiongchao
 * @Date 2020/9/22 10:12
 **/
public class Assert {

    public static T fail(String message) {
        throw new ApiException(message);
    }


    public static T fail(RetCode retCode){
        throw new ApiException(retCode);
    }
}
